package com.geek.water.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/7/25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("alert_log")
@ApiModel(description = "告警日志表")
public class AlertLog implements Serializable {
    @ApiModelProperty("主键，自增告警ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("告警类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("关联实体ID")
    @TableField("entity_id")
    private Long entityId;

    @ApiModelProperty("告警信息")
    @TableField("message")
    private String message;

    @ApiModelProperty("告警时间")
    @TableField(value = "created_at")
    private LocalDateTime createdAt;
}
